<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	 <%@ page import="org.dbi.rdbms.Rdbms, org.servlets.RdbmsServlet"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href=init.jsp>init</a> |
	<a href=showdatabases.jsp>show databases</a> |
	<a href=showtables.jsp>show tables</a>|
	<b><a href=select.jsp>select query</a></b>

	<form name="frm" action="RdbmsServlet" method="post">
		<H2>Select query</H2>
		<P>
			<textarea name="query" cols="120" rows="5" > </textarea><br>
			<input type="hidden" name="submit"	value="<%=RdbmsServlet.SELECT_QUERY%>" /> 
			<INPUT type="submit" Value="Query uitvoeren">
		</P>
	</form>
	
	<div id="queryResult">
	<%if(request.getSession().getAttribute("queryResult") != null){
		out.println(request.getSession().getAttribute("queryResult"));
		request.getSession().setAttribute("queryResult","");
		}
	
	out.println("queryResult");
	%>
</div>
</body>
</html>